class AddTestUsers < ActiveRecord::Migration
  def self.up
    if RAILS_ENV=="development"
      User.delete_all
      User.create(:name => "admin", :email => "admin@web.com", :password => "xxxxxx", :access => 1)
      
      3.times do |x| 
        User.create(:name => "user#{x}", :email => "email#{x}@web.com", :password => "xxxxxx", :access => 0)
      end
    end
  end
  
  def self.down
    User.delete_all
  end
end
